package com.bicon.botu.finance.payment;

import com.bicon.botu.core.base.annotation.EnableGlobalRedis;
import com.bicon.botu.core.base.bean.GlobalRedisTemplate;
import com.bicon.botu.core.base.repository.redis.RedisTemplateUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * 启动类
 *
 * @author tandk
 * @date 2018/5/17 17:58
 */
@SpringBootApplication
@EnableGlobalRedis
public class PaymentApplication {

    public static void main(String[] args) {
        SpringApplication.run(PaymentApplication.class,args);
    }

    @Autowired
    private GlobalRedisTemplate globalRedisTemplate;

    @Bean
    RedisTemplateUtil redisTemplateUtil(){
        return new RedisTemplateUtil(globalRedisTemplate);
    }
}
